<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="icon" type="image/gif" href="slike/animated_favicon1.gif">
<script src="skripte/Cookies.js"></script>
<script src="skripte/proba1.js"></script>
<script src="jQuery/jquery-1.10.2.js"></script>
<script src="skripte/WsVozilo.js" charset="UTF-8"></script>
<LINK href="stilovi/users.css" rel="stylesheet" type="text/css">
<LINK href="stilovi/srednjeDugme.css" rel="stylesheet" type="text/css">
<LINK href="stilovi/navigacija.css" rel="stylesheet" type="text/css">
<LINK href="stilovi/coda-slider.css" rel="stylesheet" type="text/css">
<LINK href="stilovi/templatemo_style.css" rel="stylesheet" type="text/css">
<LINK href="stilovi/login.css" rel="stylesheet" type="text/css">
<title>Vozila</title>

</head>
<body>

<div id="slider">
	<div id="templatemo_main">
    	<ul id="social_box">
            <h1> Javna saobraćajna mreža Bosne i Hercegovine </h1>         
        </ul>
        
        <div id="content">
     
            <div class="scroll">
                <div class="scrollContainer">
                
                    <div class="panel" id="home">
                    
                    		<input type="button" class="btn" value="Nazad" onclick="location.href='index.html#gallery';">
                    		<br><br>
							
							<h4><a href="vozilo.html">Prikaz vozila po ID-u</a></h4>
							
							<h4>Postojeća vozila:</h4>
							<div id="sve_role" >
							<table id="tblRole" border=0 align="left">
							<tr>
								<th>ID vozila</th>
								<th>Tip vozila</th>
								<th>Geografska sirina</th>
								<th>Geografska duzina</th>
								<th>Naziv linije</th>
							</tr>
							</table>
							</div>
							<br><br><br><br><br>
							<h4><a href="unosVozila.html">Unesi novo vozilo</a></h4>
							
							<script type="text/javascript">
							
							var linije=new Array();
							
							function insertVozilo(arg1,arg2,arg3,arg4,arg5){
								
								linije.push(arg1,arg2,arg3,arg4,arg5);
								var fja="brisanje('"+arg1+"')";
								$('#tblRole').append("<tr>"
									+"<tr><td><name='"+arg1+"' value='"+arg1+"'>"+arg1+"</td>"
									+"<td>"+arg2+"</td>"
									+"<td>"+arg3+"</td>"
									+"<td>"+arg4+"</td>"
									+"<td>"+arg5+"</td>"
									+"<td><button type='button' onClick="+fja+">Obrisi vozilo</button></td>");
									
							}
							
							
							function brisanje(sta){
								brisiVozilo(sta);
							}	
							
							ucitajVozila();
							
							</script>                
							                 
							                        
				           </div>
						</div>
                    </div>
                
                </div>
			</div>
 
        
        </div> 
</body>
</html>